﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace DiyEFConfigurationBuilder
{
    internal class EFConfigurationSource : IConfigurationSource
    {
        public int ReloadDelay { get; set; } = 500;
        public bool ReloadOnChange { get; set; } = true;
        public DiyEFContext DBContext { get; set; }

        public IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            return new EFConfigurationProvider(this);
        }
    }
}
